package demoracer

class Pilot {

    def String name
    def Date birthDate
    def List<Race> races

    def static hasMany = [races:Race]


    static constraints = {
      name(size:1..100)
    }

  def String toString() {
    return name
  }


}
